﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WindowsFormsApp1.Models;

namespace WindowsFormsApp1.Utils
{
    public static class GlobalData
    {
        /// <summary>
        /// 当前登录用户信息
        /// </summary>
        public static User AdminUser { get; set; }
        //public static Dictionary<string, int> RoomsInfo { get => RoomsInfo;  }

        //字典 RoomId-RoomInfo
        public static Dictionary<string, string> RoomsInfo = new Dictionary<string, string>() {
            //只可读
            {"超级管理员", "1"},
            {"厂长", "2"},
            {"车间主任", "3"},
            {"操作员", "4"},
            {"1", "超级管理员"},
            {"2", "厂长"},
            {"3", "车间主任"},
            {"4", "操作员"}

        };
        public static int WarehouseId { get; set; }

    }
}
